import java.util.ArrayList;


public class Fetch {
	private int fetchRate;
	private ArrayList<Instruction> fetchQueue;
	public Fetch(int fetchRate) {
		this.fetchRate = fetchRate;
		fetchQueue = new ArrayList();
	}
	public boolean notFull() {
		if(fetchQueue.isEmpty()) return true;
		return (fetchQueue.size()<=fetchRate);
	}
	public void add(Instruction inst) {
		fetchQueue.add(inst);
	}
}
